home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr25
/
memsz130.zip
/
MEMSIZE.DOC
< prev
next >
Wrap
Text File
|
1993-03-14
|
4KB
|
94 lines
OS/2 System Resources (Swapping) - Version 1.30 - Comments
This program provides the ability to monitor system memory free, swap-file
size, available swapping space, the amount of free space on each fixed
drive on your system, the amount of disk space used by the spooler and the
approximate load on your CPU (%). Each figure is updated once per second.
I've provided the source code. Feel free to make changes, just send me a
copy and leave my name (and CompuServe ID) intact. I'm interested in your
comments, especially in the support logic found in the module OBJECT.C. This
module takes care of a lot of the normal overhead in building simple PM
applications.
One bug I know about: the OS/2 1.x function, DosMemAvail, which I use to
obtain the amount of system memory free, is supposedly not to be counted on.
Under the OS/2 2.0 beta releases, the function seemed to run just fine, but
on the final release they seem to have dummied the thing out to report 512K
all the time. For this reason, the Free Memory option is not all
that useful.
Installation:
Only the .EXE and .HLP files need be present on your system. Either install
them in directories in the PATH and HELP lists, respectively, or install them
together in some directory off the PATH. In that case, the program must be
started from that directory and the directory '.' must be included in the
HELP environment variable set in CONFIG.SYS. For some reason, the help
manager doesn't search the current directory before searching the list of
directories in the HELP variable.
Author:
Rick Papo, CompuServe 72607,3111.
History:
1.00 - Submitted to Compuserve's OS/2 Forum, early January, 1992.
1.01 - Added single-line border.
Removed default TaskList processing, added custom logic.
1.10 - Added ability to hide controls.
Added ability to be moved with the mouse, independent of title bar.
Added help facility.
Removed 'exit' option from system menu (Alt+F4 or F3 does fine).
Now searches CONFIG.SYS to find SWAPPATH.
Responds to WM_PRESPARAMCHANGED messages, allowing OS/2 2.0's
font, color and color scheme palettes to work with it properly.
Added CPU load indicator.
Added ability to select which items are to be monitored.
Added ability to reset presentation parameters to default state.
1.20 - Restructured program to make status items easier to add.
Changed 'Swap-disk free space' to 'Available swap space'.
Added disk drive free space items.
Optimized window refresh logic.
Corrected minor bugs in handling font changes.
1.21 - Fixed bug in computing swap-file size.
1.22 - Fixed bug in computing available swapping space.
1.23 - Fixed bugs in initial sizing and location of CONFIG.SYS.
1.24 - Fixed underflow error in computing CPU load.
1.25 - Fixed bug with determining swap-drive.
1.26 - Switched from using COMSPEC to SYSTEM_INI when trying to determine
the boot drive in order to find CONFIG.SYS. There have been
users with alternative command-line interpreters altering
COMSPEC to point to a different disk drive. Something more
reliable was needed. This is still not a perfect solution.
1.27 - Fixed problem with initial positioning under OS/2 1.x.
If SYSTEM_INI cannot be found, look for COMSPEC instead. If that
cannot be found, assume the boot drive to be current drive.
1.28 - Fixed problem where title bar and system menu were not being
initialized correctly when the program started up with the
controls hidden.
1.29 - Now skips removable drives during setup.
Now uses the Global Information Segment to determine boot drive,
and thereby the location of CONFIG.SYS.
Now accepts any color from the color palette. It no longer forces
the use of solid colors.
1.30 - Show Spool-file Size option added to program.
Fixed bug in adjusting options while program is minimized.